# -*- coding:utf8 -*-
# from django.contrib import admin
# from django.urls import path, include
# # from django.conf.urls import include
# urlpatterns = [
#
#     # account
#     path('account/', include('account.urls', namespace='account')),
# ]
#
from django.conf.urls import url
from .import views
from django.urls import path, re_path
app_name = 'blog' # 必须有，注册app
urlpatterns=[
    url(r'^$', views.index,),
    url(r'^register/', views.register),
    url(r'^blog_list/', views.list_blog, name='blog_list'),
    url(r'^xiangqing/', views.xiangqing, name='xiangqing'),
    url(r'^blog_tags/', views.blog_tags, name='blog_tags'),
    url(r'^delete_blog/', views.delete_blog, name='delete_blog'),
    url(r'^(?P<pk>[0-9])+/$', views.blog_detail, name="blog_detail"),
    path("edit_blog/", views.edit_blog, name="edit_blog"), #修改博客
    path("list_edit_blog/<int:id>/", views.list_edit_blog, name="list_edit_blog"), #显示修改博客页
    path('login/', views.login, name='login'),
    path('login_check/', views.login_check, name='login_check'),
    path('logout/', views.logout, name='logout'),
    path('password/', views.set_password, name='password'),
    path('change_password/', views.change_password, name='change_password'),
    path('back/', views.back_index, name='back_index'),
    path('back_login/', views.back_login, name='back_login'),
    path('page/', views.page, name='page'),
    path('add_blog/', views.add_blog, name='add_blog'),
    path('liuyan/', views.liuyan, name='liuyan'),


]
